/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2024-06-25 20:42:14
 * @LastEditTime: 2024-06-25 20:48:08
 * @FilePath: /nest_study/web/src/api/system/menu/index.ts
 */
import { TQueryList, TResponse } from "@/api/index.type";
import { http } from "@/utils/request";

//列表
export const remoteList = (params: TQueryList) => {
    return http.get<TResponse>(`/api/system/menu/list`, { params })
}
//添加
export const addInfo = (data: TQueryList) => {
    return http.post<TResponse>(`/api/system/menu/create`, data)
}

//更新
export const updateInfo = (data: TQueryList) => {
    return http.put<TResponse>(`/api/system/menu/update`, data)
}

//删除
export const removeInfo = (ids: any[]) => {
    let data: any = { data: { ids } }
    return http.delete<TResponse>(`/api/system/menu/delete`, data)
}